#ifndef __DRV_AD9226_H
#define __DRV_AD9226_H
#ifdef __cplusplus
  extern "C" {
#endif


#include "main.h"


#define VALID_DATA_SHIFT (10) // 避免前几数据点中的坏点
    
extern uint16_t cnt_sampling;
extern uint16_t cnt_target;
extern uint16_t buf_AD_Data[2000];
extern float real_AD_Data[2000];
extern uint8_t  cntEndFlag;


uint16_t AD9226_readData();
void AD9226_getDataStream(uint16_t num);
void AD9226_transData(uint16_t num);

void AD9226_exTransData(uint16_t *pSrc, float *pDes, uint16_t num);

#ifdef __cplusplus
  }
#endif
#endif /* __DRV_AD9226_H */
